# array = [1, 2, 3, 3, 2, 1, 0, 2]
#
#
# def one(arr, num):
#     return arr.count(num) # arr为列表num为要获取数量的数值 count(计数)
#
#
# print(
#     one(array, 2)
# )
# array.sort() #  列表名称  . sort() 是使其排序
# print(array)
#
#
for a in range(0, 10):   # 遍历1到10 , 对应为a
    for b in range(0, 10):# 遍历1到10 , 对应为b
        for c in range(0, 10):# 遍历1到10 , 对应为c
            for d in range(100, 1000):# 遍历100到1000 , 对应为d
                if d == a * 100 + b * 10 + c:
                    # 判断如果d等于 a乘以100加上b乘以十+c则进行下面的判断
                    # 判断d等于a乘a乘a加上b乘b乘b加上c乘c乘c
                    # 如果满足条件则打印a , b  , c
                    if d == a * a * a + b * b * b + c * c * c:
                        print(a, b, c)
# for i in range(1, 10):
#     for j in range(1, i+1):
#         print(f"{j}×{i}={i*j}", end="\t")
#     print(" ")

# for i in range(1,10):
#     for g in range(1,i+1):
#         print(f"{g}×{i}={i*g}", end="\t")
#     print(" ")

